﻿@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; " />
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="/Content/global.css" />
    <link rel="stylesheet" type="text/css" href="/Content/admin.css" />
    <script type="text/javascript" src="/Scripts/jquery.js"></script>
    <script type="text/javascript" src="/Scripts/common.js"></script>
    <style type="text/css">
        html
        {
            overflow: hidden;
        }
    </style>
</head>
<body>
    <div class="header clearfix">
        <h1 class="logo">
            <img src="/content/logo.png" /></h1>
        <div class="topNav">
            <span>管理员：<strong class="org"></strong>&nbsp;&nbsp;</span> <a href="javascript:void(logout())">
                [&nbsp;退出&nbsp;]</a>
        </div>
    </div>
    <div class="toolBar clearfix">
        <div class="tipArea">
            V1.3.2</div>
        <ul class="secNav clearfix">
            <li><a href="/Organization/Index" target="topage">组织架构</a></li>
            <li><a href="/Organization/Index" target="topage">职位管理</a></li>
            <li><a href="/RightsType/Index" target="topage">权限管理</a></li>
        </ul>
    </div>
    <div id="maincontent" class="maincontent clearfix">
        <div id="mainNav" class="mainNav">
            <h3>
                <a href="javascript:;">权限设置</a></h3>
            <ul class="hide">
                <li><a href="/Department/Index" target="topage">组织架构</a></li>
                <li><a href="/Organization/Index" target="topage">职位管理</a></li>
                <li><a href="/AdminUser/Index" target="topage">用户管理</a></li>
                <li><a href="/News/Index" target="topage">职位角色</a></li>
                <li><a href="/RightsType/Index" target="topage">权限管理</a></li>
            </ul>
            <h3>
                <a href="javascript:;">新闻管理</a></h3>
            <ul class="hide">
                <li><a href="/News/Catalog" target="topage">类目管理</a></li>
                <li><a href="/News/Index" target="topage">新闻管理</a></li>
            </ul>
            <h3>
                <a href="javascript:;">商品管理</a></h3>
            <ul class="hide">
			    <li><a href="/Product/Index" target="topage">商品管理</a></li>
                <li><a href="/Product/Edit" target="topage">商品添加</a></li>
            </ul>
        </div>
        <div class="content">
            <iframe src="/Home/Frame" id="topage" name="topage" frameborder="0" style="padding: 0;
                margin: 0; height: 100%; border: 0;"></iframe>
        </div>
    </div>
    <div class="footer">
        &copy; xxx科技有限公司 2010-2012 <span style="display: none">host:<% =Server.MachineName
            %></span>
    </div>
    <script type="text/javascript">
        // 登出
        function logout() {
            if (confirm("确定要退出系统吗?")) {
                location.href = "/Home/Logout";
            }
        }

        //左侧菜单收缩
        var $navTitle = $('#mainNav h3');
        $navTitle.click(function () {
            var t = $(this);
            if ('' == t.attr('state') || undefined == t.attr('state')) {
                t.children('a').addClass('open').end().next('ul').slideDown('fast');
                t.attr('state', 'open');
            } else if ('open' == t.attr('state')) {
                t.children('a').removeClass('open').end().next('ul').slideUp('fast');
                t.attr('state', '');
            }
        });
        //左侧菜单高亮获焦
        var $navLi = $('#mainNav li');
        $navLi.click(function () {
            $navLi.removeClass('cur');
            $(this).addClass('cur');
        });
        //maincontent自动满屏
        function setHeight() {
            var $win = $(window);
            var nWinHeight = $win.height();
            $('#maincontent').height(nWinHeight - 80 - 46 - 30);
            $('#mainNav').height(nWinHeight - 80 - 46 - 30 - 20);
            $('#topage').height(nWinHeight - 80 - 46 - 30);
            if (! -[1, ] && !window.XMLHttpRequest) {
                $('#topage').width($win.width() - 200 - 5);
            } else {
                $('#topage').css('width', '100%');
            }
        }
        setHeight();
        $(window).resize(setHeight);

        //弹出层全局对象
        window.winObj = null; //一级window对象
        window.oDG = null; //一级窗口
        window.winObjChild = null; //二级window对象
        window.oDGChild = null; //二级窗口
    </script>
</body>
</html>
